3.8 \(\int \frac {(d+e x) (a+b \log (c x^n))}{x^4} \, dx\)

Optimal. Leaf size=57 \[ -\frac {d \left (a+b \log \left (c x^n\right )\right )}{3 x^3}-\frac {e \left (a+b \log \left (c x^n\right )\right )}{2 x^2}-\frac {b d n}{9 x^3}-\frac {b e n}{4 x^2} \]

[Out]

-1/9*b*d*n/x^3-1/4*b*e*n/x^2-1/3*d*(a+b*ln(c*x^n))/x^3-1/2*e*(a+b*ln(c*x^n))/x^2

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 48, normalized size of antiderivative = 0.84, number of steps used = 4, number of rules used = 3, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {43, 2334, 12} \[ -\frac {1}{6} \left (\frac {2 d}{x^3}+\frac {3 e}{x^2}\right ) \left (a+b \log \left (c x^n\right )\right )-\frac {b d n}{9 x^3}-\frac {b e n}{4 x^2} \]

Antiderivative was successfully verified.

[In]

Int[((d + e*x)*(a + b*Log[c*x^n]))/x^4,x]

[Out]

-(b*d*n)/(9*x^3) - (b*e*n)/(4*x^2) - (((2*d)/x^3 + (3*e)/x^2)*(a + b*Log[c*x^n]))/6

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 2334

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*(x_)^(m_.)*((d_) + (e_.)*(x_)^(r_.))^(q_.), x_Symbol] :> With[{u = I
ntHide[x^m*(d + e*x^r)^q, x]}, Simp[u*(a + b*Log[c*x^n]), x] - Dist[b*n, Int[SimplifyIntegrand[u/x, x], x], x]
] /; FreeQ[{a, b, c, d, e, n, r}, x] && IGtQ[q, 0] && IntegerQ[m] &&  !(EqQ[q, 1] && EqQ[m, -1])

Rubi steps

\begin {align*} \int \frac {(d+e x) \left (a+b \log \left (c x^n\right )\right )}{x^4} \, dx &=-\frac {1}{6} \left (\frac {2 d}{x^3}+\frac {3 e}{x^2}\right ) \left (a+b \log \left (c x^n\right )\right )-(b n) \int \frac {-2 d-3 e x}{6 x^4} \, dx\\ &=-\frac {1}{6} \left (\frac {2 d}{x^3}+\frac {3 e}{x^2}\right ) \left (a+b \log \left (c x^n\right )\right )-\frac {1}{6} (b n) \int \frac {-2 d-3 e x}{x^4} \, dx\\ &=-\frac {1}{6} \left (\frac {2 d}{x^3}+\frac {3 e}{x^2}\right ) \left (a+b \log \left (c x^n\right )\right )-\frac {1}{6} (b n) \int \left (-\frac {2 d}{x^4}-\frac {3 e}{x^3}\right ) \, dx\\ &=-\frac {b d n}{9 x^3}-\frac {b e n}{4 x^2}-\frac {1}{6} \left (\frac {2 d}{x^3}+\frac {3 e}{x^2}\right ) \left (a+b \log \left (c x^n\right )\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.03, size = 47, normalized size = 0.82 \[ -\frac {6 a (2 d+3 e x)+6 b (2 d+3 e x) \log \left (c x^n\right )+b n (4 d+9 e x)}{36 x^3} \]

Antiderivative was successfully verified.

[In]

Integrate[((d + e*x)*(a + b*Log[c*x^n]))/x^4,x]

[Out]

-1/36*(6*a*(2*d + 3*e*x) + b*n*(4*d + 9*e*x) + 6*b*(2*d + 3*e*x)*Log[c*x^n])/x^3

________________________________________________________________________________________

fricas [A]  time = 0.44, size = 57, normalized size = 1.00 \[ -\frac {4 \, b d n + 12 \, a d + 9 \, {\left (b e n + 2 \, a e\right )} x + 6 \, {\left (3 \, b e x + 2 \, b d\right )} \log \relax (c) + 6 \, {\left (3 \, b e n x + 2 \, b d n\right )} \log \relax (x)}{36 \, x^{3}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+d)*(a+b*log(c*x^n))/x^4,x, algorithm="fricas")

[Out]

-1/36*(4*b*d*n + 12*a*d + 9*(b*e*n + 2*a*e)*x + 6*(3*b*e*x + 2*b*d)*log(c) + 6*(3*b*e*n*x + 2*b*d*n)*log(x))/x
^3

________________________________________________________________________________________

giac [A]  time = 0.26, size = 58, normalized size = 1.02 \[ -\frac {18 \, b n x e \log \relax (x) + 9 \, b n x e + 18 \, b x e \log \relax (c) + 12 \, b d n \log \relax (x) + 4 \, b d n + 18 \, a x e + 12 \, b d \log \relax (c) + 12 \, a d}{36 \, x^{3}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+d)*(a+b*log(c*x^n))/x^4,x, algorithm="giac")

[Out]

-1/36*(18*b*n*x*e*log(x) + 9*b*n*x*e + 18*b*x*e*log(c) + 12*b*d*n*log(x) + 4*b*d*n + 18*a*x*e + 12*b*d*log(c)
+ 12*a*d)/x^3

________________________________________________________________________________________

maple [C]  time = 0.16, size = 235, normalized size = 4.12 \[ -\frac {\left (3 e x +2 d \right ) b \ln \left (x^{n}\right )}{6 x^{3}}-\frac {-9 i \pi b e x \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )+9 i \pi b e x \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+9 i \pi b e x \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}-9 i \pi b e x \mathrm {csgn}\left (i c \,x^{n}\right )^{3}-6 i \pi b d \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )+6 i \pi b d \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+6 i \pi b d \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}-6 i \pi b d \mathrm {csgn}\left (i c \,x^{n}\right )^{3}+9 b e n x +18 b e x \ln \relax (c )+18 a e x +4 b d n +12 b d \ln \relax (c )+12 a d}{36 x^{3}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((e*x+d)*(b*ln(c*x^n)+a)/x^4,x)

[Out]

-1/6*b*(3*e*x+2*d)/x^3*ln(x^n)-1/36*(9*I*Pi*b*e*x*csgn(I*x^n)*csgn(I*c*x^n)^2-9*I*Pi*b*e*x*csgn(I*x^n)*csgn(I*
c*x^n)*csgn(I*c)-9*I*Pi*b*e*x*csgn(I*c*x^n)^3+9*I*Pi*b*e*x*csgn(I*c*x^n)^2*csgn(I*c)+18*b*e*x*ln(c)+9*b*e*n*x+
18*a*e*x+6*I*Pi*b*d*csgn(I*x^n)*csgn(I*c*x^n)^2-6*I*Pi*b*d*csgn(I*x^n)*csgn(I*c*x^n)*csgn(I*c)-6*I*Pi*b*d*csgn
(I*c*x^n)^3+6*I*Pi*b*d*csgn(I*c*x^n)^2*csgn(I*c)+12*b*d*ln(c)+4*b*d*n+12*a*d)/x^3

________________________________________________________________________________________

maxima [A]  time = 0.61, size = 57, normalized size = 1.00 \[ -\frac {b e n}{4 \, x^{2}} - \frac {b e \log \left (c x^{n}\right )}{2 \, x^{2}} - \frac {b d n}{9 \, x^{3}} - \frac {a e}{2 \, x^{2}} - \frac {b d \log \left (c x^{n}\right )}{3 \, x^{3}} - \frac {a d}{3 \, x^{3}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+d)*(a+b*log(c*x^n))/x^4,x, algorithm="maxima")

[Out]

-1/4*b*e*n/x^2 - 1/2*b*e*log(c*x^n)/x^2 - 1/9*b*d*n/x^3 - 1/2*a*e/x^2 - 1/3*b*d*log(c*x^n)/x^3 - 1/3*a*d/x^3

________________________________________________________________________________________

mupad [B]  time = 3.47, size = 49, normalized size = 0.86 \[ -\frac {2\,a\,d+x\,\left (3\,a\,e+\frac {3\,b\,e\,n}{2}\right )+\frac {2\,b\,d\,n}{3}}{6\,x^3}-\frac {\ln \left (c\,x^n\right )\,\left (\frac {b\,d}{3}+\frac {b\,e\,x}{2}\right )}{x^3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((a + b*log(c*x^n))*(d + e*x))/x^4,x)

[Out]

- (2*a*d + x*(3*a*e + (3*b*e*n)/2) + (2*b*d*n)/3)/(6*x^3) - (log(c*x^n)*((b*d)/3 + (b*e*x)/2))/x^3

________________________________________________________________________________________

sympy [A]  time = 1.64, size = 88, normalized size = 1.54 \[ - \frac {a d}{3 x^{3}} - \frac {a e}{2 x^{2}} - \frac {b d n \log {\relax (x )}}{3 x^{3}} - \frac {b d n}{9 x^{3}} - \frac {b d \log {\relax (c )}}{3 x^{3}} - \frac {b e n \log {\relax (x )}}{2 x^{2}} - \frac {b e n}{4 x^{2}} - \frac {b e \log {\relax (c )}}{2 x^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+d)*(a+b*ln(c*x**n))/x**4,x)

[Out]

-a*d/(3*x**3) - a*e/(2*x**2) - b*d*n*log(x)/(3*x**3) - b*d*n/(9*x**3) - b*d*log(c)/(3*x**3) - b*e*n*log(x)/(2*
x**2) - b*e*n/(4*x**2) - b*e*log(c)/(2*x**2)

________________________________________________________________________________________